package com.amigo.online.message.mybatisbean;

import java.util.ArrayList;
import java.util.List;

public class GroupMessageTblExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public GroupMessageTblExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andFrom_uidIsNull() {
            addCriterion("from_uid is null");
            return (Criteria) this;
        }

        public Criteria andFrom_uidIsNotNull() {
            addCriterion("from_uid is not null");
            return (Criteria) this;
        }

        public Criteria andFrom_uidEqualTo(Long value) {
            addCriterion("from_uid =", value, "from_uid");
            return (Criteria) this;
        }

        public Criteria andFrom_uidNotEqualTo(Long value) {
            addCriterion("from_uid <>", value, "from_uid");
            return (Criteria) this;
        }

        public Criteria andFrom_uidGreaterThan(Long value) {
            addCriterion("from_uid >", value, "from_uid");
            return (Criteria) this;
        }

        public Criteria andFrom_uidGreaterThanOrEqualTo(Long value) {
            addCriterion("from_uid >=", value, "from_uid");
            return (Criteria) this;
        }

        public Criteria andFrom_uidLessThan(Long value) {
            addCriterion("from_uid <", value, "from_uid");
            return (Criteria) this;
        }

        public Criteria andFrom_uidLessThanOrEqualTo(Long value) {
            addCriterion("from_uid <=", value, "from_uid");
            return (Criteria) this;
        }

        public Criteria andFrom_uidIn(List<Long> values) {
            addCriterion("from_uid in", values, "from_uid");
            return (Criteria) this;
        }

        public Criteria andFrom_uidNotIn(List<Long> values) {
            addCriterion("from_uid not in", values, "from_uid");
            return (Criteria) this;
        }

        public Criteria andFrom_uidBetween(Long value1, Long value2) {
            addCriterion("from_uid between", value1, value2, "from_uid");
            return (Criteria) this;
        }

        public Criteria andFrom_uidNotBetween(Long value1, Long value2) {
            addCriterion("from_uid not between", value1, value2, "from_uid");
            return (Criteria) this;
        }

        public Criteria andTo_gidIsNull() {
            addCriterion("to_gid is null");
            return (Criteria) this;
        }

        public Criteria andTo_gidIsNotNull() {
            addCriterion("to_gid is not null");
            return (Criteria) this;
        }

        public Criteria andTo_gidEqualTo(Long value) {
            addCriterion("to_gid =", value, "to_gid");
            return (Criteria) this;
        }

        public Criteria andTo_gidNotEqualTo(Long value) {
            addCriterion("to_gid <>", value, "to_gid");
            return (Criteria) this;
        }

        public Criteria andTo_gidGreaterThan(Long value) {
            addCriterion("to_gid >", value, "to_gid");
            return (Criteria) this;
        }

        public Criteria andTo_gidGreaterThanOrEqualTo(Long value) {
            addCriterion("to_gid >=", value, "to_gid");
            return (Criteria) this;
        }

        public Criteria andTo_gidLessThan(Long value) {
            addCriterion("to_gid <", value, "to_gid");
            return (Criteria) this;
        }

        public Criteria andTo_gidLessThanOrEqualTo(Long value) {
            addCriterion("to_gid <=", value, "to_gid");
            return (Criteria) this;
        }

        public Criteria andTo_gidIn(List<Long> values) {
            addCriterion("to_gid in", values, "to_gid");
            return (Criteria) this;
        }

        public Criteria andTo_gidNotIn(List<Long> values) {
            addCriterion("to_gid not in", values, "to_gid");
            return (Criteria) this;
        }

        public Criteria andTo_gidBetween(Long value1, Long value2) {
            addCriterion("to_gid between", value1, value2, "to_gid");
            return (Criteria) this;
        }

        public Criteria andTo_gidNotBetween(Long value1, Long value2) {
            addCriterion("to_gid not between", value1, value2, "to_gid");
            return (Criteria) this;
        }

        public Criteria andFrom_nicknameIsNull() {
            addCriterion("from_nickname is null");
            return (Criteria) this;
        }

        public Criteria andFrom_nicknameIsNotNull() {
            addCriterion("from_nickname is not null");
            return (Criteria) this;
        }

        public Criteria andFrom_nicknameEqualTo(String value) {
            addCriterion("from_nickname =", value, "from_nickname");
            return (Criteria) this;
        }

        public Criteria andFrom_nicknameNotEqualTo(String value) {
            addCriterion("from_nickname <>", value, "from_nickname");
            return (Criteria) this;
        }

        public Criteria andFrom_nicknameGreaterThan(String value) {
            addCriterion("from_nickname >", value, "from_nickname");
            return (Criteria) this;
        }

        public Criteria andFrom_nicknameGreaterThanOrEqualTo(String value) {
            addCriterion("from_nickname >=", value, "from_nickname");
            return (Criteria) this;
        }

        public Criteria andFrom_nicknameLessThan(String value) {
            addCriterion("from_nickname <", value, "from_nickname");
            return (Criteria) this;
        }

        public Criteria andFrom_nicknameLessThanOrEqualTo(String value) {
            addCriterion("from_nickname <=", value, "from_nickname");
            return (Criteria) this;
        }

        public Criteria andFrom_nicknameLike(String value) {
            addCriterion("from_nickname like", value, "from_nickname");
            return (Criteria) this;
        }

        public Criteria andFrom_nicknameNotLike(String value) {
            addCriterion("from_nickname not like", value, "from_nickname");
            return (Criteria) this;
        }

        public Criteria andFrom_nicknameIn(List<String> values) {
            addCriterion("from_nickname in", values, "from_nickname");
            return (Criteria) this;
        }

        public Criteria andFrom_nicknameNotIn(List<String> values) {
            addCriterion("from_nickname not in", values, "from_nickname");
            return (Criteria) this;
        }

        public Criteria andFrom_nicknameBetween(String value1, String value2) {
            addCriterion("from_nickname between", value1, value2, "from_nickname");
            return (Criteria) this;
        }

        public Criteria andFrom_nicknameNotBetween(String value1, String value2) {
            addCriterion("from_nickname not between", value1, value2, "from_nickname");
            return (Criteria) this;
        }

        public Criteria andFrom_avatarIsNull() {
            addCriterion("from_avatar is null");
            return (Criteria) this;
        }

        public Criteria andFrom_avatarIsNotNull() {
            addCriterion("from_avatar is not null");
            return (Criteria) this;
        }

        public Criteria andFrom_avatarEqualTo(String value) {
            addCriterion("from_avatar =", value, "from_avatar");
            return (Criteria) this;
        }

        public Criteria andFrom_avatarNotEqualTo(String value) {
            addCriterion("from_avatar <>", value, "from_avatar");
            return (Criteria) this;
        }

        public Criteria andFrom_avatarGreaterThan(String value) {
            addCriterion("from_avatar >", value, "from_avatar");
            return (Criteria) this;
        }

        public Criteria andFrom_avatarGreaterThanOrEqualTo(String value) {
            addCriterion("from_avatar >=", value, "from_avatar");
            return (Criteria) this;
        }

        public Criteria andFrom_avatarLessThan(String value) {
            addCriterion("from_avatar <", value, "from_avatar");
            return (Criteria) this;
        }

        public Criteria andFrom_avatarLessThanOrEqualTo(String value) {
            addCriterion("from_avatar <=", value, "from_avatar");
            return (Criteria) this;
        }

        public Criteria andFrom_avatarLike(String value) {
            addCriterion("from_avatar like", value, "from_avatar");
            return (Criteria) this;
        }

        public Criteria andFrom_avatarNotLike(String value) {
            addCriterion("from_avatar not like", value, "from_avatar");
            return (Criteria) this;
        }

        public Criteria andFrom_avatarIn(List<String> values) {
            addCriterion("from_avatar in", values, "from_avatar");
            return (Criteria) this;
        }

        public Criteria andFrom_avatarNotIn(List<String> values) {
            addCriterion("from_avatar not in", values, "from_avatar");
            return (Criteria) this;
        }

        public Criteria andFrom_avatarBetween(String value1, String value2) {
            addCriterion("from_avatar between", value1, value2, "from_avatar");
            return (Criteria) this;
        }

        public Criteria andFrom_avatarNotBetween(String value1, String value2) {
            addCriterion("from_avatar not between", value1, value2, "from_avatar");
            return (Criteria) this;
        }

        public Criteria andMsg_idIsNull() {
            addCriterion("msg_id is null");
            return (Criteria) this;
        }

        public Criteria andMsg_idIsNotNull() {
            addCriterion("msg_id is not null");
            return (Criteria) this;
        }

        public Criteria andMsg_idEqualTo(String value) {
            addCriterion("msg_id =", value, "msg_id");
            return (Criteria) this;
        }

        public Criteria andMsg_idNotEqualTo(String value) {
            addCriterion("msg_id <>", value, "msg_id");
            return (Criteria) this;
        }

        public Criteria andMsg_idGreaterThan(String value) {
            addCriterion("msg_id >", value, "msg_id");
            return (Criteria) this;
        }

        public Criteria andMsg_idGreaterThanOrEqualTo(String value) {
            addCriterion("msg_id >=", value, "msg_id");
            return (Criteria) this;
        }

        public Criteria andMsg_idLessThan(String value) {
            addCriterion("msg_id <", value, "msg_id");
            return (Criteria) this;
        }

        public Criteria andMsg_idLessThanOrEqualTo(String value) {
            addCriterion("msg_id <=", value, "msg_id");
            return (Criteria) this;
        }

        public Criteria andMsg_idLike(String value) {
            addCriterion("msg_id like", value, "msg_id");
            return (Criteria) this;
        }

        public Criteria andMsg_idNotLike(String value) {
            addCriterion("msg_id not like", value, "msg_id");
            return (Criteria) this;
        }

        public Criteria andMsg_idIn(List<String> values) {
            addCriterion("msg_id in", values, "msg_id");
            return (Criteria) this;
        }

        public Criteria andMsg_idNotIn(List<String> values) {
            addCriterion("msg_id not in", values, "msg_id");
            return (Criteria) this;
        }

        public Criteria andMsg_idBetween(String value1, String value2) {
            addCriterion("msg_id between", value1, value2, "msg_id");
            return (Criteria) this;
        }

        public Criteria andMsg_idNotBetween(String value1, String value2) {
            addCriterion("msg_id not between", value1, value2, "msg_id");
            return (Criteria) this;
        }

        public Criteria andTypeIsNull() {
            addCriterion("type is null");
            return (Criteria) this;
        }

        public Criteria andTypeIsNotNull() {
            addCriterion("type is not null");
            return (Criteria) this;
        }

        public Criteria andTypeEqualTo(Byte value) {
            addCriterion("type =", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualTo(Byte value) {
            addCriterion("type <>", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThan(Byte value) {
            addCriterion("type >", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualTo(Byte value) {
            addCriterion("type >=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThan(Byte value) {
            addCriterion("type <", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualTo(Byte value) {
            addCriterion("type <=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeIn(List<Byte> values) {
            addCriterion("type in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotIn(List<Byte> values) {
            addCriterion("type not in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeBetween(Byte value1, Byte value2) {
            addCriterion("type between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotBetween(Byte value1, Byte value2) {
            addCriterion("type not between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andCreated_timeIsNull() {
            addCriterion("created_time is null");
            return (Criteria) this;
        }

        public Criteria andCreated_timeIsNotNull() {
            addCriterion("created_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreated_timeEqualTo(Long value) {
            addCriterion("created_time =", value, "created_time");
            return (Criteria) this;
        }

        public Criteria andCreated_timeNotEqualTo(Long value) {
            addCriterion("created_time <>", value, "created_time");
            return (Criteria) this;
        }

        public Criteria andCreated_timeGreaterThan(Long value) {
            addCriterion("created_time >", value, "created_time");
            return (Criteria) this;
        }

        public Criteria andCreated_timeGreaterThanOrEqualTo(Long value) {
            addCriterion("created_time >=", value, "created_time");
            return (Criteria) this;
        }

        public Criteria andCreated_timeLessThan(Long value) {
            addCriterion("created_time <", value, "created_time");
            return (Criteria) this;
        }

        public Criteria andCreated_timeLessThanOrEqualTo(Long value) {
            addCriterion("created_time <=", value, "created_time");
            return (Criteria) this;
        }

        public Criteria andCreated_timeIn(List<Long> values) {
            addCriterion("created_time in", values, "created_time");
            return (Criteria) this;
        }

        public Criteria andCreated_timeNotIn(List<Long> values) {
            addCriterion("created_time not in", values, "created_time");
            return (Criteria) this;
        }

        public Criteria andCreated_timeBetween(Long value1, Long value2) {
            addCriterion("created_time between", value1, value2, "created_time");
            return (Criteria) this;
        }

        public Criteria andCreated_timeNotBetween(Long value1, Long value2) {
            addCriterion("created_time not between", value1, value2, "created_time");
            return (Criteria) this;
        }

        public Criteria andLongitudeIsNull() {
            addCriterion("longitude is null");
            return (Criteria) this;
        }

        public Criteria andLongitudeIsNotNull() {
            addCriterion("longitude is not null");
            return (Criteria) this;
        }

        public Criteria andLongitudeEqualTo(String value) {
            addCriterion("longitude =", value, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeNotEqualTo(String value) {
            addCriterion("longitude <>", value, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeGreaterThan(String value) {
            addCriterion("longitude >", value, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeGreaterThanOrEqualTo(String value) {
            addCriterion("longitude >=", value, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeLessThan(String value) {
            addCriterion("longitude <", value, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeLessThanOrEqualTo(String value) {
            addCriterion("longitude <=", value, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeLike(String value) {
            addCriterion("longitude like", value, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeNotLike(String value) {
            addCriterion("longitude not like", value, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeIn(List<String> values) {
            addCriterion("longitude in", values, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeNotIn(List<String> values) {
            addCriterion("longitude not in", values, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeBetween(String value1, String value2) {
            addCriterion("longitude between", value1, value2, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeNotBetween(String value1, String value2) {
            addCriterion("longitude not between", value1, value2, "longitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeIsNull() {
            addCriterion("latitude is null");
            return (Criteria) this;
        }

        public Criteria andLatitudeIsNotNull() {
            addCriterion("latitude is not null");
            return (Criteria) this;
        }

        public Criteria andLatitudeEqualTo(String value) {
            addCriterion("latitude =", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeNotEqualTo(String value) {
            addCriterion("latitude <>", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeGreaterThan(String value) {
            addCriterion("latitude >", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeGreaterThanOrEqualTo(String value) {
            addCriterion("latitude >=", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeLessThan(String value) {
            addCriterion("latitude <", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeLessThanOrEqualTo(String value) {
            addCriterion("latitude <=", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeLike(String value) {
            addCriterion("latitude like", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeNotLike(String value) {
            addCriterion("latitude not like", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeIn(List<String> values) {
            addCriterion("latitude in", values, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeNotIn(List<String> values) {
            addCriterion("latitude not in", values, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeBetween(String value1, String value2) {
            addCriterion("latitude between", value1, value2, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeNotBetween(String value1, String value2) {
            addCriterion("latitude not between", value1, value2, "latitude");
            return (Criteria) this;
        }

        public Criteria andPrev_msg_idIsNull() {
            addCriterion("prev_msg_id is null");
            return (Criteria) this;
        }

        public Criteria andPrev_msg_idIsNotNull() {
            addCriterion("prev_msg_id is not null");
            return (Criteria) this;
        }

        public Criteria andPrev_msg_idEqualTo(String value) {
            addCriterion("prev_msg_id =", value, "prev_msg_id");
            return (Criteria) this;
        }

        public Criteria andPrev_msg_idNotEqualTo(String value) {
            addCriterion("prev_msg_id <>", value, "prev_msg_id");
            return (Criteria) this;
        }

        public Criteria andPrev_msg_idGreaterThan(String value) {
            addCriterion("prev_msg_id >", value, "prev_msg_id");
            return (Criteria) this;
        }

        public Criteria andPrev_msg_idGreaterThanOrEqualTo(String value) {
            addCriterion("prev_msg_id >=", value, "prev_msg_id");
            return (Criteria) this;
        }

        public Criteria andPrev_msg_idLessThan(String value) {
            addCriterion("prev_msg_id <", value, "prev_msg_id");
            return (Criteria) this;
        }

        public Criteria andPrev_msg_idLessThanOrEqualTo(String value) {
            addCriterion("prev_msg_id <=", value, "prev_msg_id");
            return (Criteria) this;
        }

        public Criteria andPrev_msg_idLike(String value) {
            addCriterion("prev_msg_id like", value, "prev_msg_id");
            return (Criteria) this;
        }

        public Criteria andPrev_msg_idNotLike(String value) {
            addCriterion("prev_msg_id not like", value, "prev_msg_id");
            return (Criteria) this;
        }

        public Criteria andPrev_msg_idIn(List<String> values) {
            addCriterion("prev_msg_id in", values, "prev_msg_id");
            return (Criteria) this;
        }

        public Criteria andPrev_msg_idNotIn(List<String> values) {
            addCriterion("prev_msg_id not in", values, "prev_msg_id");
            return (Criteria) this;
        }

        public Criteria andPrev_msg_idBetween(String value1, String value2) {
            addCriterion("prev_msg_id between", value1, value2, "prev_msg_id");
            return (Criteria) this;
        }

        public Criteria andPrev_msg_idNotBetween(String value1, String value2) {
            addCriterion("prev_msg_id not between", value1, value2, "prev_msg_id");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNull() {
            addCriterion("deleted is null");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNotNull() {
            addCriterion("deleted is not null");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualTo(Boolean value) {
            addCriterion("deleted =", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualTo(Boolean value) {
            addCriterion("deleted <>", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThan(Boolean value) {
            addCriterion("deleted >", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualTo(Boolean value) {
            addCriterion("deleted >=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThan(Boolean value) {
            addCriterion("deleted <", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualTo(Boolean value) {
            addCriterion("deleted <=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedIn(List<Boolean> values) {
            addCriterion("deleted in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotIn(List<Boolean> values) {
            addCriterion("deleted not in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedBetween(Boolean value1, Boolean value2) {
            addCriterion("deleted between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotBetween(Boolean value1, Boolean value2) {
            addCriterion("deleted not between", value1, value2, "deleted");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}